package aimis.service;

import aimis.domain.PlantingRecords;
import aimis.domain.Region;
import aimis.domain.TobaccoCrops;

import java.sql.Date;
import java.util.List;

public interface AreaService {
    public Region IdFindRegion(int id);
    TobaccoCrops IdFindCrops(int id);
    List<PlantingRecords> RegIdFind(int region_id);
    List<PlantingRecords> SowingDateFind(Date sowing_date);
    void InsertAres(String name, String planted_area, String unplanted_area);

    void InsertTobacco(String name, String growth_cycle, String photo_url);
    void InsertPlanting(int region_id,int crop_id, float planting_area,Date sowing_date, Date harvest_date, int number);

    List<PlantingRecords> getAllSearch(String keyWord);
    public void deletePlantingRecordById(Long id);
    PlantingRecords IdFindPlanting(int id);
    void updateTobacco(String name, String growth_cycle, String photo_url, int crop_id);
    void updateAres(String name, String planted_area, String unplanted_area, int region_id);
}
